<?php
/**
 * @file
 * Download Monitor - Allows you to trace file downloads. Just place the direct link
 * to the file on the web, and specify the extensions of files you want to trace in the GUI.
 * It creates interactive chart and records downloads for today, yesterday, this week,
 * last week, this month, last month and total.
 * Requires writable .htaccess file of Apache Web server in Joomla root folder.
 * @package download-monitor
 * @version 1.0
 * @revision @REVISION@
 * @license http://www.gnu.org/licenses/gpl-3.0.txt     GNU General Public License v3
 * @copyright (C) 2012 by CodeGravity.com - All rights reserved!
 * @website http://www.codegravity.com
 */

?>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="0" class="">
    <tr>
        <td class="table" height="23" width="73%" align="left">Path</td>
        <td colspan="2" class="table"><div align="center">Action</div></td>
    </tr>
    <?php
    if (@$filepathar)
        foreach($filepathar as $filepath)
        {
            ?>
            <tr>
                <td class="table" height="23" width="73%" align="left"><?php echo $filepath[1];?></td>
                <td width="9%" class="table" height="23"><div align="center"><a href="index.php?option=com_download-monitor&task=edit_file&did=<?php echo $filepath[0]?>"><img src="components/com_download-monitor/views/monitors/tmpl/images/edit.jpg"/></a></div></td>
                <td width="11%" class="table" height="23"><div align="center"><a href="javascript:confirmChoicefilepath('<?php echo $filepath[0]?>')"><img src="components/com_download-monitor/views/monitors/tmpl/images/delete.jpg" /></a></div></td>
            </tr>
            <?php
        }
    ?>

</table>
